<?php
//session 比较常用的是存放用户的登录状态
session_start();

if(!isset($_SESSION["uid"])){
    
echo "<script>Window.location='index.php'</script>" ;
}
?>
<html>
    <head>
        <title>甜品商城</title>
        <meta charset="UTF-8">
        <style>
            .box{
                float: left;
                position: absolute;
                transform: translate(150%,50%);
                
            }
            .ttl{
                color: deeppink;
                font-size: 30px;
                float: left;
            }
            .dh a{
                list-style: none;
                float: right;
                font-size: 20px;
                margin-left: 12px;               
            }
            .dh span{
                position: absolute;
                transform: translate(20000%,10%);
            }
            .zh{
                    
                width: 1000px;
                height: 667px;
                position: absolute;
                transform: translate(40%,50%);
            }
            .dhl a{
                font-size: 30px;
                position: absolute;
                transform: translate(100%,100%);
                margin-left: -150px;
                
            }
           
            .ym{
                 position: absolute;
                transform: translate(250%,3500%);
            }
             .dh2 a{
                font-size: 30px;
                position: absolute;
                transform: translate(240%,47%);
                margin-left: -150px;
                
            }
            .spxx h1{
               position:absolute;
               transform: translate(0%,90%);
            }
            .bd{
                
                height: 600px;
                width: 1000px;
                position: absolute;
                transform: translate(0%,20%);
            }
           
        </style>
    </head>
    
    

    
    
    <body>
        <div class="zh">
            <div class="ttl">甜甜啦</div>
            
            <div class="box">
                <input type="text" class="input" placeholder="请输入商品">
                <input type="button" value="搜索" class="button">
            </div>
            
            <div class="dh">
                <a href="login1.php" >退出</a>
                <span>|</span>
                <a href="register.php" >我的订单</a>
            </div>
            <div class="dhl">
                
                    <a href="">首页</a>
                    <span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                    <a href="">我的订单</a>
                   
                    
            </div>
            <div class="dh2">
                <a href="forget.php">修改密码</a>
                    
            </div>
            <div class="spxx">
            <h1>商品信息</h1>
            </div>
            <div class="bd">
            <form action="#" method="" name="表单"></form>
            名称:<input type="text" class="input" placeholder="是草莓呀">
            <br/>
            <br/>
            类型:<input type="text" class="input" placeholder="蛋糕">
            <br/>
            <br/>
            单价:<input type="text" class="input" placeholder="6.00">
            <br/>
            <br/>
            库存:<input type="text" class="input" placeholder="2000">
            <br/>
            <br/>
            描述:<input type="text" class="input" placeholder="是草莓呀">
            <br/>
            <br/>
            <p>
                <textarea name="" style="width: 1000px;height: 300px;overflow:scroll;"></textarea>>
            </p>
         
            </div>
        </div>

        
    </body>
</html>
